<?
require('bootstrapper.php');
$view = new View('index.tpl');
$form = new jQuickform('elements');
//$gr = $form->addGroup('gr')->setLabel('Период');
//$gr->addDatePicker('fromdate')->setLabel('Начало');
//$gr->addDatePicker('todate')->setLabel('Кончало');
//$form->addDatePicker('todate1')->setLabel('Кончало');
jQuickform::css()->addCss('/style.css');
//$buttons = $form->addGroupButtons();
//    $buttons->addPageButtonPrev();
//    $buttons->addPageButtonNext();
$renderer = HTML_QuickForm2_Renderer::factory('default');
    $page = $form->addPage('first','Первая страница');
        $page->addInputText('first-text');
        $buttons = $page->addGroupButtons();
            $buttons->addPageButtonPrev();
            $buttons->addPageButtonNext();
            print $page->render($renderer);exit;
$view->setVar('css',jQuickform::css()->getCss());
$view->setVar('boDy',$form);
$view->setVar('css_inline',jQuickform::css()->getCssInline());
$view->setVar('js_onload',jQuickform::js()->getJsOnload());
$view->setVar('js_inline',jQuickform::js()->getJsInline());
$view->setVar('js',jQuickform::js()->getJs());
$view->setVar('title','jQuickform = jQueryUI + Html_QuickForm2');
print $view->parse();
?>